<?php

class Form_Newstype extends QForm
{
    function __construct($action)
    {
        // 调用父类的构造函数
        parent::__construct('form_newstype', $action);

        // 从配置文件载入表单
        $filename = rtrim(dirname(__FILE__), '/\\') . DS . 'newstype_form.yaml';
        $this->loadFromConfig(Helper_YAML::loadCached($filename));
        $this->addValidations(Newstype::meta());
        $newstype = new Newstype();
		$this['pid']->items = $newstype->get_select_list();
		$this['type_flag']->items = Q::ini('appini/type_flag');
        //$this['nav']->items = $newstype->get_select_nav_show();
    }
}

